package com.xwintop.xTransfer.sender.bean;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @ClassName: SenderConfigWeChat
 * @Description: 微信消息发送器配置
 * @author: xufeng
 * @date: 2021/9/18 23:17
 */

@Getter
@Setter
@ToString
public class SenderConfigWeChat implements SenderConfig {
    private String serviceName = "senderWeChat";//对应服务名称
    private String id;//如果留空则系统自动分配
    private boolean enable = true;//是否开启
    private boolean async = false;//是否异步执行
    private boolean exceptionExit = true;//是否发生异常时退出任务
    private String fileNameFilterRegex;//文件名过滤正则表达式

    private String openId;
    private String tokenUrl;
    private String url;

    private String appId;
    private String appSecret;
    //模板代码
    private String templateCode;
    private String miniProgramAppId;//微信小程序appId
    //微信小程序pagePath
    private String pagePath;
    // 默认或者1 普通微信 2 企业微信
    private String weChatType;
    // 企业id
    private Integer agentId;
}
